package com.megvii.koala;

import android.app.Application;

import com.megvii.corelib.util.SharedPreferenceTool;
import com.megvii.koala.data.model.LoginModel;

/**
 * Created by taozheng on 16/4/11.
 */
public class BaseApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        //初始化服务器地址
        if (SharedPreferenceTool.getStringValueByKey(this, LoginModel.KEY_SERVER, null) == null) {
            SharedPreferenceTool.saveStringValue(this, LoginModel.KEY_SERVER, getResources().getString(R.string.server_path));
        }
    }
}
